﻿@model EduCategory
<form class="form-horizontal uiform" method="post"
      data-modal="true"
      data-table=".uitable"
      data-error-el=".alert-danger"
      data-on-submit-success="fx.mtfSuccess"
      action="@Url.Action("Save")">
    <div class="modal-header">
        <button class="close" data-dismiss="modal" type="button" aria-label="Close">
            <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title">@Html.EditStatus("培训类型")</h4>
    </div>
    <div class="modal-body">
        @Html.AntiForgeryToken()
        @Html.MarkCreate()
        @Html.HiddenFor(p => p.Id)
        <div class="alert alert-danger fxhide"></div>
        <div class="form-group">
            <label class="control-label col-md-6">
                <span class="required"> * </span>
                名称：
            </label>
            <div class="col-md-5">
                <input class="form-control" name="@nameof(Model.Name)" value="@Model.Name"
                       data-validate="required: true,maxlength: 30"
                       data-validate-message="required:'请输入名称'"
                       type="text" autocomplete="off" />
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-6">
                <span class="required"> * </span>
                培训总学时：
            </label>
            <div class="col-md-5">
                <input class="form-control uispin" name="@nameof(Model.EduTotalPeriod)" value="@Model.EduTotalPeriod"
                       data-bts-max="1000000"
                       data-bts-postfix="秒"
                       data-validate="required: true,min:1,max: 1000000"
                       data-validate-message="required:'请输入培训总学时(秒)'"
                       type="text" autocomplete="off" />
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-6">
                <span class="required"> * </span>
                每日最大培训学时：
            </label>
            <div class="col-md-5">
                <input class="form-control uispin" name="@nameof(Model.EduDayMaxPeriod)" value="@Model.EduDayMaxPeriod"
                       data-bts-max="1000000"
                       data-bts-postfix="秒"
                       data-validate="required: true,min:1,max: 1000000"
                       data-validate-message="required:'请输入每日最大培训学时(秒)'"
                       type="text" autocomplete="off" />
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-6">
                <span class="required"> * </span>
                验证问题允许尝试次数：
            </label>
            <div class="col-md-5">
                <input class="form-control uispin" name="@nameof(Model.ValidateTryTime)" value="@Model.ValidateTryTime"
                       data-bts-max="1000000"
                       data-bts-postfix="次"
                       data-validate="required: true,min:1,max: 1000000"
                       data-validate-message="required:'请输入验证问题允许尝试次数'"
                       type="text" autocomplete="off" />
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-6">
                <span class="required"> * </span>
                验证问题回答超时时间：
            </label>
            <div class="col-md-5">
                <input class="form-control uispin" name="@nameof(Model.ValidateTimeout)" value="@Model.ValidateTimeout"
                       data-bts-max="1000000"
                       data-bts-postfix="秒"
                       data-validate="required: true,min:1,max: 1000000"
                       data-validate-message="required:'请输入验证问题回答超时时间(秒)'"
                       type="text" autocomplete="off" />
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-6">
                <span class="required"> * </span>
                验证问题随机弹出时间范围：
            </label>
            <div class="col-md-5">
                <input class="form-control" name="@nameof(Model.ValidateRandomRange)" value="@Model.ValidateRandomRange"
                       data-validate="required: true,maxlength: 30"
                       data-validate-message="required:'请输入验证问题随机弹出时间范围'"
                       type="text" autocomplete="off" />
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-6">
                备注：
            </label>
            <div class="col-md-5">
                <textarea class="form-control" name="@nameof(Model.Note)" rows="3" data-validate="maxlength: 100">@Model.Note</textarea>
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <button class="btn btn-primary" type="submit">
            <i class="fa fa-save"></i> 保存
        </button>
        <button class="btn btn-default" type="button" data-dismiss="modal">
            <i class="fa fa-sign-in"></i> 关闭
        </button>
    </div>
</form>